package com.ce.pms.charge.dao.impl;

import java.util.List;

import org.hibernate.Query;

import com.ce.pms.base.dao.impl.PmsBaseDaoImpl;
import com.ce.pms.charge.dao.IMeterVersionDao;
import com.ce.pms.charge.model.MeterVersion;

public class MeterVersionDaoImpl extends PmsBaseDaoImpl<MeterVersion> implements
		IMeterVersionDao {

	/**
	 * 方法描述:获取所有有效的走表版本
	 * @author 胡煦
	 * Create on:2008-9-4
	 * @param
	 * @return List<MeterVersion>
	 * Edit author:
	 * Edit on:
	 * 修改原因：
	 */
	public List<MeterVersion> findAllValidMeterVersion(){
		String hql = "from MeterVersion mv where mv.statuz = '002'";
		Query query = createQuery(hql);
		return query.list();
	}
}
